29.07.2012, 18:33
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/car", true)) {
new Float:up[3], carid;
GetPlayerPos(playerid, up[0], up[1], up[2]);
carid = CreateVehicle(411, up[0]+2, up[1]+2, up[2], 0, -1, -1, 0);
PutPlayerInVehicle(playerid, carid, 0);
SendClientMessage(playerid, -1, "Here's your car");
return 1;
}
return 0;
}