Help with /copchase CMD [ZCMD]
#1

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;
}
Reply
#2

pawn Код:
liitumiseks
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.
Reply
#3

Can you make it or something, i dont quite understand,
Reply
#4

And no i didntm this is only for this one command only
Reply
#5

Anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)