Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext,"/supcar",true) == 0)
- {
- if(SpielerInfo[playerid][pAdmin] >= 1)
- {
- if(GetPVarInt(playerid, "SupCar") == 1)
- {
- SetPVarInt(playerid, "SupCar", 0);
- DestroyVehicle(Supcar[playerid]);
- return 1;
- }
- else
- {
- new Float:pX, Float:pY, Float:pZ, Float:FA;
- GetPlayerPos(playerid, pX, pY, pZ);
- GetPlayerFacingAngle(playerid, FA);
- SetPVarInt(playerid, "SupCar", 1);
- Supcar[playerid] = CreateVehicle(560, pX, pY, pZ, FA, 2, 2,-1);
- PutPlayerInVehicle(playerid, Supcar[playerid], 0);
- SendClientMessage(playerid, 0xFF00CDFF, "Supporter Fahrzeug gespawnt, zum löschen nochmal /supcar");
- Gas[Supcar[playerid]] = GetGasMax(Supcar[playerid]);
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement