25.06.2011, 01:32
PHP код:
if(!strcmp(cmdtext, "/buffalo", true)) {
if(IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, 0x33AA33AA, "Voce ja ta dentro de um veiculo");
new Float:var0 = 0, Float:var1 = 0, Float:var2 = 0, Float:var3 = 0;
GetPlayerPos(playerid, var0, var1, var2);
GetPlayerFacingAngle(playerid, var3);
CreateVehicle(502, var0 + 1, var1 + 1, var2, var3, 1, 1, 10000);
PutPlayerInVehicle(playerid, 502, 0);
return 1;
}