Pl.:if (strcmp(cmd, \"freeze\", true) == 0)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
if(IsPlayerAdmin(playerid))
{
new reason[256],plr;
tmp = strtok(cmdtext, idx),plr = FindPlayerIDFromString(tmp),reason = strtok(cmdtext, idx);
if (!strlen(tmp) || !strlen(reason)) SendClientMessage(playerid,0x41abd1AA, \"[syntax]: /c freeze [PlayerID] [indok]\");
else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,0x41abd1AA,\"Error: Hibas Player\");
else
{
new string[256];
format(string,sizeof(string),\"Admin:[ %s ] lefagyasztotta
ID:[ %s ] Indok:[ %s ].\",Name,
gPlayers[plr],cmdtext[strlen(tmp)+7]);
SendClientMessageToAll(0x41abd1AA, string);
SendClientMessage(plr,0x41abd1AA,\"Admin altal lefagyasztva!\");
TogglePlayerControllable(plr,0);
}
}
}
Nem mutasa ki anak a nevet akit le fagyasztottam
(A VC-MP Pawn fugvenyek nem nagyon kulonboznek a SA-MP-etol!)
Kep:
http://kepfeltoltes.hu/121130/vc-mp-001_www.kepfeltoltes.hu_.jpg[/img]