Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:faggio(playerid, params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Trebuie sa fi logat pentru a folosi aceasta comanda");
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- new carid = CreateVehicle(462, X,Y,Z, 0.0, -1, -1, -1);
- new carid = GetPlayerVehicleID(playerid);
- Carspawn[carid] = carid;
- PutPlayerInVehicle(playerid, carid, 0);
- if(GetPlayerState(playerid) == PLAYER_STATE_EXIT_VEHICLE)
- {
- Carspawn[carid] = 0;
- DestroyVehicle(carid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment