Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:cc(playerid, params[])
- {
- new
- Carro,
- Cor1,
- Cor2;
- if(!PlayerDados[playerid][Vip]) return SendClientMessage(playerid, BRANCO, "Você precisa ser Vip para usar este comando!");
- if(sscanf(params, "iii", Carro, Cor1, Cor2)) return SendClientMessage(playerid, CINZA, "[SSBR] Use /cc [ID] [cor1] [cor2]"), SendClientMessage(playerid, CINZA, "Use o comando para criar um veiculo VIP.");
- new Float:X,
- Float:Y,
- Float:X1,
- Float:Y1,
- Float:Z,
- Float:A;
- PosicaoFrentePlayer(playerid, X, Y, 3);
- GetPlayerPos(playerid, X1, Y1, Z);
- GetPlayerFacingAngle(playerid, A);
- DestroyVehicle(CarroDono[playerid]);
- CarroDono[playerid] = CreateVehicle(Carro, X, Y, Z, A+90, Cor1, Cor2, 15);
- format(String, sizeof(String), "Carro VIP de {FFFF00}%s", Nome(playerid));
- DonoCarro[playerid] = Create3DTextLabel(String, VERDE_CLARO, X, Y, Z+1, 30, 0, 1);
- Attach3DTextLabelToVehicle(DonoCarro[playerid], CarroDono[playerid], 0, 0, 0);
- PutPlayerInVehicle(playerid, CarroDono[playerid], 0);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment