28.01.2013, 17:54
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; }