affecting other players
#1

how can i make if someone does /whatever playerid how can i make it affect the playerid they put?
Reply
#2

Код:
if(strcmp(cmd, "/COMMAND HERE", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "Use /COMMAND HERE [playerid]");
return 1;
}
if(IsStringAName(tmp))
{
giveplayerid = GetPlayerID(tmp);
}
else
{
giveplayerid = strval(tmp);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)