26.03.2012, 00:59
bom galera to com esse cmd e n concigui mudar para zcmd
alguem poderia me ajuda como eu mudo ele?
pawn Code:
if(strcmp(cmd, "/espiar", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, BRANCO, "/espiar [playerid/Parte-do-Nick]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(!IsPlayerConnected(giveplayerid))
{
SendClientMessage(playerid, AZUL_ESCURO, " Jogador nгo conectado");
return 1;
}
if(giveplayerid == playerid)
{
SendClientMessage(playerid, AZUL_ESCURO, " Nгo й possнvel se espiar.");
return 1;
}
if(PlayerInfo[giveplayerid][pAdmin] >= 5000)
{
return 1;
}
if(IsPlayerInAnyVehicle(giveplayerid))
{
GetPlayerName(giveplayerid, giveplayer,256);
format(string, sizeof(string), "Vocк estб espiando %s (ID: %d)", giveplayer, giveplayerid);
SendClientMessage(playerid, BRANCO, string);
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid), SPECTATE_MODE_NORMAL);
Espiando[playerid] = 1;
return 1;
}
else
{
GetPlayerName(giveplayerid, giveplayer,256);
format(string, sizeof(string), "Vocк estб espiando %s (ID: %d)", giveplayer, giveplayerid);
SendClientMessage(playerid, BRANCO, string);
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, giveplayerid, SPECTATE_MODE_NORMAL);
Espiando[playerid] = 1;
}
}
return 1;
}