14.05.2011, 19:23
pawn Код:
if(strcmp(cmd, "/prender",true) == 0)
{
new tempo[20];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й um Administrador Dono!");
tmp = strtok(cmdtext, idx);
tempo = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /prender [id]");
giveplayerid = ReturnUser(tmp);
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD2, "[ERRO] Player Off-line!");
if(giveplayerid != INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GRAD2, "[ERRO] Vocк nгo pode se prender!");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Vocк prendeu %s!", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
else
{
format(string, sizeof(string), "* Vocк foi colocado no Presнdio Pelo Admin %s.", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
}
GameTextForPlayer(giveplayerid, "~b~Welcome to the ~n~~r~Jungle baby", 5000, 3);
ResetPlayerWeapons(giveplayerid);
SetPlayerWantedLevel(giveplayerid, 0);
SetPlayerPos(giveplayerid, 0.0,0.0,0.0); // Troque por suas coordenadas
return 1;
}