28.06.2012, 00:37
Ajuda,
Eae Galerinha, Tou aqui mais uma vez ..
Minha questao agora й assim, Quando dou /ir sem estar em algum Veiculo vou normalmente, mas quando dou /ir dentro de um veiculo, Vou parar la no centro do mapa ...
Eae Galerinha, Tou aqui mais uma vez ..
Minha questao agora й assim, Quando dou /ir sem estar em algum Veiculo vou normalmente, mas quando dou /ir dentro de um veiculo, Vou parar la no centro do mapa ...
pawn Код:
CMD:ir(playerid, params[])
{
new giverid, Float:pos[3], stringtext[150];
if(PlayerInfo[playerid][pAdmin] < 1000) return SendClientMessage(playerid, VERMELHO_ESCURO, "Vocк nгo tem autorizaзгo!");
if(sscanf(params, "u", giverid)) return SendClientMessage(playerid, VERMELHO_ESCURO, "[x] Uso /ir [id]");
if(giverid == INVALID_PLAYER_ID) return SendClientMessage(playerid, VERMELHO_ESCURO, "ID invalido.");
if(!IsPlayerConnected(giverid)) return SendClientMessage(playerid, VERMELHO_ESCURO, "Usuario nгo conectado.");
new Float: X,Float: Y,Float: Z;
GetPlayerPos(giverid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, X + 1, Y + 1, Z);
PutPlayerInVehicle(playerid, VehicleID, 0);
}
if(PlayerInfo[playerid][pAdmin] == 2000)
{
GetPlayerName(playerid, pNome, sizeof(pNome));
format(stringtext, sizeof(stringtext), "[BCV Admin] O(A) administrador(a) %s foi atй a sua localizaзгo para te ajudar!", pNome);
SendClientMessage(giverid, VERDE_CLARO_1, stringtext);
GetPlayerName(giverid, pNome, sizeof(pNome));
format(stringtext, sizeof(stringtext), "[BCV Admin] Vocк foi ate a localizaзгo do jogador %s para ajuda-lo!",pNome);
SendClientMessage(playerid, VERDE_CLARO_1, stringtext);
}
if(PlayerInfo[playerid][pAdmin] == 1000)
{
GetPlayerName(playerid, pNome, sizeof(pNome));
format(stringtext, sizeof(stringtext), "[BCV Admin] O(A) moderador(a) %s foi atй a sua localizaзгo para te ajudar!", pNome);
SendClientMessage(giverid, VERDE_CLARO_1, stringtext);
GetPlayerName(giverid, pNome, sizeof(pNome));
format(stringtext, sizeof(stringtext), "[BCV Admin] Vocк foi ate a localizaзгo do jogador %s para ajuda-lo!",pNome);
SendClientMessage(playerid, VERDE_CLARO_1, stringtext);
}
return 1;
}