04.10.2009, 09:04
Flip the Vehicle!
/FLIP Command
A: "Read above LOL!"
Q: "What this filterscript do?"
A: "This filterscript will make your gamemode, when there is a player type /flip, the car will be flipped into normal angle"
Q: "Then..."
A: "That's all!"
Q: "The code?"
A: "The code? Read it abo.... oh... sorry, here it is..."
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/flip", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new currentveh;
new Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
return 1;
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You are not in any vehicle!");
return 1;
}
}
return 0;
}
A: "Simple! Just put the codes above into your gamemode!"
Q: "Can u repeat please, i didn't hear what you say..."
A: "READ IT LOL! I didn't SAY, but i WROTE. So READ IT!"
Q: "I can't read, can you help me?"
A: "I have no idea that there is a PAWNO scripter that cannot read -.-"
Q: "How can i compile my gamemode?"
A: "THIS IS NOT A TOPIC TO ASK FOR IT!!!"
Q: "Can i......."
A: "What ever you say, NO!"
Q: "But i want to say, can i give you $1000. Ok, you don't want it, so never mind..."
A: " :'( "
Sorry about that.... The Q is stupid and the A is high emotional
A: "I hope this Filterscript will be really usefull!"