21.06.2011, 15:23
PHP код:
new Carro[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/zr350", cmdtext, true, 10) == 0)
{
DestroyVehicle(Carro[playerid]);
new Float:X,Float:Y,Float:Z,Float:Angle;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
Carro[playerid] = CreateVehicle(477,X,Y,Z,Angle,-1,-1,600);
PutPlayerInVehicle(playerid, Carro[playerid], 0);
return 1;
}
return 0;
}