06.07.2011, 01:37
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/flip", true) == 0)
{
new currentveh;//Create a new variable
new Float:angle;//Create a new variable
currentveh = GetPlayerVehicleID(playerid);//Insert into variable
GetVehicleZAngle(currentveh, angle);//Get the vehicleZAngle of currentveh with value angle
SetVehicleZAngle(currentveh, angle);//Set the vehicleZAngle of currentveh with value angle
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");//Send a client massage to the command user
return 1;
}
return 0;
}