17.01.2017, 14:44
Code:
dcmd_moto(playerid, params[]) { if(Player[playerid][pAdmin] >= 1) new Float:X, Float:Y, Float:Z, Float:A; //Obs faltou essa linha GetPlayerFacingAngle(playerid, A); GetPlayerPos(playerid, X, Y, Z); VeiculoVeh[playerid]=1; VeiculoVeh[playerid] = CreateVehicle(522, X, Y, Z, A, -1, -1, 30000); PutPlayerInVehicle(playerid, VeiculoVeh[playerid], 0); SendClientMessage(playerid, -1, "[INFO]: Veнculo criado com sucesso. Para deletar-lo use '/dc' ou '/dcm.'"); return 1; }