RP commands and usage

Started by SoFahim, Sep 02, 2015, 10:36 AM

Previous topic - Next topic

KAKAN

sorry for this post..
But can anyone tell me how to use sphere.StreamedToPlayer(player) function
oh no

Thijn

Exactly like that. I've posted some info about that on the forum before, search for it.

SoFahim

Quote from: Stormeus on Sep 02, 2015, 05:50 PMIt's not really roleplaying unless you use accents. Example should be
QuoteStormeus takes out his gun, Reload ammo and start shooting in a French accent
Accent is not fact, In roleplay, accent is not much care. RP depend on role of a player.


In my SAMP roleplay server, I use Proxdetector function to use foreach.

forward ProxDetector(Float:radi, playerid, str[], col1, col2, col3, col4, col5);

public ProxDetector(Float:radi, playerid, str[],col1,col2,col3,col4,col5)
{
if(IsPlayerConnected(playerid))
{
new Float:posx, Float:posy, Float:posz;
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
//radi = 2.0; //Trigger Radius
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{

GetPlayerPos(i, posx, posy, posz);
tempposx = (oldposx -posx);
tempposy = (oldposy -posy);
tempposz = (oldposz -posz);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
{
SendClientMessage(i, col1, str);
}
else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
{
SendClientMessage(i, col2, str);
}
else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
{
SendClientMessage(i, col3, str);
}
else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
{
SendClientMessage(i, col4, str);
}
else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
SendClientMessage(i, col5, str);
}
}
}
}//not connected
return 1;
}
and the command is
CMD:me(playerid, params[])
{
if(gPlayerLogged{playerid} == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}

if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /me [action]");
if(strlen(params) > 128)
{
new firstline[128], secondline[128];
strmid(firstline, params, 0, 126);
strmid(secondline, params, 126, 205);
format(secondline, sizeof(secondline), "... %s", secondline);
format(firstline, sizeof(firstline), "* %s %s ...", GetPlayerNameEx(playerid), firstline);
ProxDetector(30.0, playerid, firstline, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ProxDetector(30.0, playerid, secondline, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else {
new string[128];
format(string, sizeof(string), "* %s %s", GetPlayerNameEx(playerid), params);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
return 1;
}
I know Pawno and Squirrel fully different. and also, I am not well know about SQ. .
I have been confused to make the loop. Can you please give me example code for it. no tlike before one. That one not even about any loop

The reason I have left VC-MP is scripting base + the gameplay.
VC-MP 0.4 released with lots of awesome things but they put pawn behind.

KAKAN

I have posted the way to use loop, with playerson
here's the default loop we use for max things
for( local i = 0; i < GetMaxPlayers(); i++ )
oh no

DizzasTeR


aXXo

You can't bloat around your French charm and get away with shit. That's power gaming.
**Stormeus round-house kicks Havana and brings peace and prosperity to Haitians in a French accent (S/F?)