12.07.2015, 11:24
Here You Go
pawn Код:
if (strcmp("/re", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid,0xFF0000FF,"{55FF00}» Success: {FFFFFF}Your Vehicle have been Successfully Fixed.!");
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
}// Forgot This !
else
{
//if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) You Don't need this
new Float:pos[4]; [B]/////536 line[/B]
GetPlayerPos(id,pos[0],pos[1],pos[2]);
GetPlayerFacingAngle(id,pos[3]);
new re = CreateVehicle(510, pos[0],pos[1],pos[2],pos[3], -1,-1, 10);
PutPlayerInVehicle(playerid,re,0);
return 1;
}
}// You Don't put this !