Jakub Kučera 6 Odesláno: 21. Listopad, 2013 Share Odesláno: 21. Listopad, 2013 Dobrý den, mám kód : QCMD:setport(playerid,params[]) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); Teleport[0] = x; Teleport[1] = y; Teleport[2] = z; TeleportI[0] = GetPlayerInterior(playerid); TeleportI[1] = GetPlayerVirtualWorld(playerid); TeleportI[2] = 1; return 1; } QCMD:port(playerid,params[]) { if(GetPVarInt(playerid,"DelaSeMise") == 1) return InfoB(playerid,"Mas rozdelanou misi",3); if(VBase[playerid] == true) return InfoB(playerid,"Jsi ve vezeni",3); if(TeleportI[2] == 0) return InfoB(playerid,"Teleport neni ulozen",3); SetPlayerPos(playerid,Teleport[0],Teleport[1],Teleport[2]); SetPlayerInterior(playerid,TeleportI[0]); SetPlayerVirtualWorld(playerid,TeleportI[1]); if(GetPVarInt(playerid,"DelaSeMise") == 1) return InfoB(playerid,"Mas rozdelanou misi",3); return 1; } a potřeboval bych, že po napsání : /delport by byl port zablokovaný. Link to comment Share on other sites More sharing options...
0 Akai 1 Odesláno: 21. Listopad, 2013 Share Odesláno: 21. Listopad, 2013 new bool:portallowed; QCMD:setport(playerid,params[]) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); Teleport[0] = x; Teleport[1] = y; Teleport[2] = z; TeleportI[0] = GetPlayerInterior(playerid); TeleportI[1] = GetPlayerVirtualWorld(playerid); TeleportI[2] = 1; portallowed = true; return 1; } QCMD:port(playerid,params[]) { if(!portallowed) return InfoB(playerid,"Portovani je zakazano",3); if(GetPVarInt(playerid,"DelaSeMise") == 1) return InfoB(playerid,"Mas rozdelanou misi",3); if(VBase[playerid] == true) return InfoB(playerid,"Jsi ve vezeni",3); if(TeleportI[2] == 0) return InfoB(playerid,"Teleport neni ulozen",3); SetPlayerPos(playerid,Teleport[0],Teleport[1],Teleport[2]); SetPlayerInterior(playerid,TeleportI[0]); SetPlayerVirtualWorld(playerid,TeleportI[1]); if(GetPVarInt(playerid,"DelaSeMise") == 1) return InfoB(playerid,"Mas rozdelanou misi",3); return 1; } QCMD:delport(playerid,params[]) { portallowed = false; } Link to comment Share on other sites More sharing options...
0 Jakub Kučera 6 Odesláno: 21. Listopad, 2013 Author Share Odesláno: 21. Listopad, 2013 Děkuji Link to comment Share on other sites More sharing options...
Dotaz
Jakub Kučera 6
Dobrý den, mám kód :
a potřeboval bych, že po napsání : /delport by byl port zablokovaný.
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now