Help with /copchase CMD [ZCMD] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with /copchase CMD [ZCMD] (
/showthread.php?tid=411363)
Help with /copchase CMD [ZCMD] -
Hade. - 28.01.2013
If you write the command, then if noone is the escaper (pogenik ) then it should put you in a escaper car, and send a message to all. If someone else types the command then he should be the police guy. The cars and stuff are added but just the command doesnt work, it spawns you mabye to the field but no more, please help.
Код:
#include <a_samp>
#include <zcmd>
#pragma tabsize 0
CMD:copchase(playerid, params[])
{
new pogenik;
if(pogenik == 0)
{
new string[18];
format(string, sizeof(string), "Copchase");
GameTextForPlayer(playerid, string, 3000, 5);
PutPlayerInVehicle(playerid, 1, 0);
SetPlayerVirtualWorld(playerid, 69);
SendClientMessageToAll(0x33AA33AA, "Copchase alustatud, liitumiseks /copchase");
pogenik = 1;
}
else if(pogenik == 1)
{
new string[18];
SetPlayerPos(playerid, 2493.4150,-1661.2931,13.1743);
format(string, sizeof(string), "Copchase");
GameTextForPlayer(playerid, string, 3000, 5);
SendClientMessage(playerid, 0xFFFF00AA, "Sisene politsei autosse");
}
return 1;
}
Re: Help with /copchase CMD [ZCMD] -
Da_Noob - 28.01.2013
Hihi sex
OT: did you made it so if a player connects and the player is cop pogenik is set to 1 or otherwise 0. Also, you should make pogenik a global variable and under OnPlayerConnect checks if a player is a cop.
Re: Help with /copchase CMD [ZCMD] -
Hade. - 28.01.2013
Can you make it or something, i dont quite understand,
Re: Help with /copchase CMD [ZCMD] -
Hade. - 28.01.2013
And no i didntm this is only for this one command only
Re: Help with /copchase CMD [ZCMD] -
Hade. - 29.01.2013
Anyone?