if(!strcmp(cmd, "/spec", true)) { if(!GetPlayerCargo(playerid)) return SendClientMessage(playerid, RED, "[ x ][SRD Sever] Vocк nгo tem permissгo!"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, RED, "[ x ] Uso correto: /Spec [ ID ]"); new id = strval(tmp); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, RED, "[ x ][SRD Sever] Ninguйm online com esse ID!"); TogglePlayerSpectating(playerid, true); if(IsPlayerInAnyVehicle(id)) PlayerSpectateVehicle(playerid, GetPlayerVehicleID(id)); else PlayerSpectatePlayer(playerid, id); format(gstring, sizeof(gstring), "[ > ] Vocк estб espectando o(a) jogador(a) %s", PlayerName(id)); SendClientMessage(playerid, VerdeSRD, gstring); return 1; } |