06.01.2010, 13:23
im doing it like this:
Код:
if(strcmp(cmd, "/rtrain", true) == 0) { playercash = GetPlayerMoney(playerid); new Float:xpos; new Float:ypos; new Float:zpos; GetPlayerPos(playerid, Float:xpos, Float:ypos, Float:zpos); if(playercash > 1400) { CreateVehicle(515, xpos, ypos+4, zpos, 90, -1, -1, -1); GivePlayerMoney(playerid, -1400); } else { SendClientMessage(playerid, 0xFFFFFFAA, "You need more money."); } return 1; }