Commands doesn't affect to player ID 2
#5

Quote:
Originally Posted by PrivatioBoni
Посмотреть сообщение
Post your /slap code at least?
It's not due to /slap command, she works on other players, just on ID 2, LIKE EVERY OTHER COMMAND, it doesn't work. /slap command was just example...

Quote:

COMMANDlap(playerid, params[]) {
if(PlayerInfo[playerid][pAdmin] >= 1) {
new toplayerid,
Floathealth,
Floatlx, Floatly, Floatlz;

if (!sscanf(params, "u", toplayerid))
{
if(toplayerid != INVALID_PLAYER_ID && Bit1_Get(g_PlayerLogged, toplayerid) != 0) {
GetPlayerHealth(toplayerid, shealth);
SetPlayerHealth(toplayerid, shealth-5);
GetPlayerPos(toplayerid, slx, sly, slz);
SetPlayerPosEx(toplayerid, slx, sly, slz+5);
PlayerPlaySound(toplayerid, 1130, slx, sly, slz+5);
}
else SendClientMessage(playerid, COLOR_RED, "That player is not online!");
}
else SendClientMessage(playerid, COLOR_RED, "/slap <playerid>");
}
else SendClientMessage(playerid, COLOR_RED, "You cant use this!");
return 1;
}

Reply


Messages In This Thread
Commands doesn't affect to player ID 2 - by themaker - 28.03.2014, 16:46
Re: Commands doesn't affect to player ID 2 - by PrivatioBoni - 28.03.2014, 16:51
Re: Commands doesn't affect to player ID 2 - by themaker - 28.03.2014, 16:58
Re: Commands doesn't affect to player ID 2 - by PrivatioBoni - 28.03.2014, 17:01
Re: Commands doesn't affect to player ID 2 - by themaker - 28.03.2014, 17:01
Re: Commands doesn't affect to player ID 2 - by themaker - 28.03.2014, 18:47
Re: Commands doesn't affect to player ID 2 - by jakejohnsonusa - 28.03.2014, 19:10
Re: Commands doesn't affect to player ID 2 - by themaker - 28.03.2014, 23:22
Re: Commands doesn't affect to player ID 2 - by Konstantinos - 28.03.2014, 23:32

Forum Jump:


Users browsing this thread: 1 Guest(s)