08.05.2012, 17:54
(
Последний раз редактировалось mau.tito; 08.05.2012 в 18:29.
)
Uia Consegui '-' Sem ajuda do caio
Samp Owna
Samp Owna
if(strcmp(cmd, "/re", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USE: /re [id]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo, world; plo = ReturnUser(tmp); world = GetPlayerVirtualWorld(plo); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[playerid][pAdmin] >= 1) { if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342) { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)"); return 1; } if(PlayerInfo[plo][pAdmin] >= 5000 && PlayerInfo[playerid][pAdmin] < 6000) { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode ir atй um Admin Dono !"); return 1; } if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerInfo[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerInfo[plo][pInt]); PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt]; PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal]; } if(PlayerInfo[plo][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); LinkVehicleToInterior(tmpcar, 0); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } SetPlayerVirtualWorld(playerid, world); SendClientMessage(playerid, 0x33FF00FF, "Vocк foi teleportado pelo Admin !"); GetPlayerName(playerid, playername, MAX_PLAYER_NAME); GetPlayerName(plo, plname, MAX_PLAYER_NAME); if(admtrampando[playerid] == 1 && admhide[playerid] == 1) {} else { format(string, sizeof(string), "O Admin %s foi atender o relatуrio de %s.",playername,plname); } for(new a = 0, b = GetMaxPlayers(); a < b; ++a) if(PlayerInfo[a][pAdmin]>1) SendClientMessage(a, -1, string); ProxDetector(30.0, playerid, string, COLOR_AZULBB,COLOR_AZULBB,COLOR_AZULBB,COLOR_AZULBB,COLOR_AZULBB); } { SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!"); } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Esse nгo й um player ativo."); } } return 1; }