09.11.2011, 21:10
Hey,
I am fairly new to scripting and need a hand around strings.
I know about commands like OOC but not with commands for example:
I need to find a way for pID, Thanks in advance
I am fairly new to scripting and need a hand around strings.
I know about commands like OOC but not with commands for example:
pawn Код:
CMD:makeadvisor(playerid,params[])
{
new pID;
new sendername[MAX_PLAYER_NAME], string[36];
if(PlayerInfo[playerid][pDonatedRank] == 5) return SendClientMessage(playerid,COLOR_WHITE,"You Cannot Use This Command");
else if(PlayerInfo[playerid][pHelper] == 4) return SendClientMessage(playerid,COLOR_WHITE,"You Cannot Use This Command");
else if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,COLOR_WHITE,"This Player Is Not Connected");
else
{
PlayerInfo[pID][pHelper] = 1;
GetPlayerName(playerid,sendername, sizeof(sendername));
format(string, sizeof(string),"You Have Been Set Helper By:%s",sendername);
SendClientMessage(playerid,COLOR_WHITE,"You Have Set pID A Helper");
}
return 1;
}