Originally Posted by Case Sensitive
pawn Код:
if(strcmp(cmd, "/refresh", true) == 0) { if(GetPlayerInterior(playerid) => 1) return SendClientMessage(playerid,-1,"Comando Proibido em Interiores"); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); TextDrawHideForPlayer(playerid,lbt); TextDrawHideForPlayer(playerid,lbb); SendClientMessage(playerid,COLOR_YELLOW,"Refresh feito com sucesso, se ainda estiver com problemas fale com um admin!"); return 1; }
pawn Код:
if(GetPlayerVirtualWorld(playerid) == 1) { CreateDynamicObject(4571,2009.90002441,-155.00000000,256.29998779,0.00000000,0.00000000,0. 00000000); sу }
pawn Код:
COMMAND:setvw(playerid, params[]) { static ID, VW; if(sscanf("ui", ID, VW)) return SendClientMessage(playerid, -1, "/SetVW [playerid] [VW]"); SetPlayerVirtualWorld(ID, VW); return 1; }
pawn Код:
new Bike; Bike = CreateVehicle(468,-1445.6392,-592.3033,1055.7831,90.2133,-1,-1,600); //
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(Bike = vehicleid) { if (PlayerInfo[playerid][pAdmin] >= 1) return 1; else return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid, -1, "You're not a Admin!"); } return 1; }
|