20.07.2011, 19:58
Код:
//------------------------------------------------[GOTObAnk]------------------------------------- if(strcmp(cmd, "/gotobank", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 2) { if (GetPlayerState(playerid) == 2) { **HERE IS WARNING** new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1460.9790,-1021.4325,23.9616,92.1847); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { **AND HERE IS WARNING** SetPlayerPos(playerid, 1460.9790,-1021.4325,23.9616,92.1847); } SendClientMessage(playerid, 0xA8A8FFFF, " Te-ai teleportat cu Succes !"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu EsTi Admin PenTru A FoLoSi CoManDa AceasTa !"); } } return 1; }