if(strcmp(cmd, "/Bdp", true) == 0)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "[BDP] %s ( ID: %d ) Foi Foi Para {00FF00} ( /Bdp )", pName, playerid);
SendClientMessageToAll(0x33CCFFAA, string);
if(GetPlayerState(playerid) == 2)
{
SetVehiclePos(GetPlayerVehicleID(playerid), -343.1008,1542.0986,75.2188);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
else
{
SetPlayerPos(playerid, -343.6049,1542.0969,75.5625);
}
SetPlayerInterior(playerid, 0);
return 1;
}
CMD:trazer(playerid, params[])
{
new string[128];
new interiorid;
new Float:X,
Float:Y,
Float:Z;
if(CrisInfo[playerid][cAdmin] <= 0) return SendClientMessage(playerid, Vermelho_Claro,"[ERRO]: Seu nнvel de Admin й insuficiente.");
if(sscanf(params, "d", Outroplayerid)) return SendClientMessage(playerid, Branco, "Use: /trazer [id]");
if(!IsPlayerConnected(Outroplayerid)) return SendClientMessage(playerid, Vermelho_Claro, "Jogador nгo conectado");
if(IsPlayerInAnyVehicle(Outroplayerid)) {
if(GetPlayerInterior(playerid) >= 1) return SendClientMessage(playerid, Vermelho_Claro, "Vocк nгo pode trazer players para dentro de interiores");
GetPlayerName(Outroplayerid, NomedoCara, sizeof(NomedoCara));
format(string, sizeof(string), "Vocк trouxe %s atй vocк", NomedoCara);
SendClientMessage(playerid, Verde_Folha, string);
GetPlayerPos(playerid, X, Y, Z);
SetVehiclePos(GetPlayerVehicleID(Outroplayerid), X+1, Y+1, Z);
}
if(!IsPlayerInAnyVehicle(Outroplayerid)) {
GetPlayerName(Outroplayerid, NomedoCara, sizeof(NomedoCara));
format(string, sizeof(string), "Vocк trouxe %s atй vocк", NomedoCara);
SendClientMessage(playerid, Verde_Folha, string);
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(Outroplayerid, X+1, Y+1, Z);
interiorid = GetPlayerInterior(playerid);
SetPlayerInterior(Outroplayerid, interiorid);
}
return true;
}
if(sscanf(params, "d", Outroplayerid)) return SendClientMessage(playerid, Branco, "Use: /trazer [id]");
if (strcmp("/status", cmd, true, 8) == 0)
{
Status(playerid);
return 1;
}
SalvarPlayer(playerid)
{
new Float:Vida;
new Float:Colete;
GetPlayerHealth(playerid, Vida);
GetPlayerArmour(playerid, Colete);
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[50];
format(String, sizeof(String), CONTAS, Nome);
dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
dini_FloatSet(String,"Vida", Vida);
dini_FloatSet(String,"Colete", Colete);
dini_IntSet(String,"Matou", Matou[playerid]);
dini_IntSet(String,"Morreu", Morreu[playerid]);
dini_IntSet(String,"Logou", Logou[playerid]);
return 1;
}
SetarPlayer(playerid)
{
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[50];
format(String, sizeof(String), CONTAS, Nome);
GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
SetPlayerHealth(playerid, dini_Int(String,"Vida"));
SetPlayerArmour(playerid, dini_Int(String,"Colete"));
Matou[playerid] = dini_Int(String, "Matou");
Morreu[playerid] = dini_Int(String, "Morreu");
Logou[playerid] = dini_Int(String, "Logou");
return 1;
}
Status(playerid)
{
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[128];
SendClientMessage(playerid, 0xFF0000AA, "================================================");
format(String, sizeof(String),"Minhas Informaзхes : %s",Nome);
SendClientMessage(playerid, 0xFFFF00AA,String);
format(String, sizeof(String),"Dinheiro: %d", GetPlayerMoney(playerid));
SendClientMessage(playerid, 0x1E90FFAA,String);
format(String, sizeof(String),"Matou: %d",Matou[playerid]);
SendClientMessage(playerid, 0x1E90FFAA,String);
format(String, sizeof(String),"Morreu: %d",Morreu[playerid]);
SendClientMessage(playerid, 0x1E90FFAA,String);
format(String, sizeof(String),"Vocк Jб Logou %d Vezes Neste Servidor",Logou[playerid]);
SendClientMessage(playerid, 0x1E90FFAA,String);
SendClientMessage(playerid, 0xFF0000AA, "================================================");
return 1;
}
if(!strcmp("/status", cmd, true))
{
Status(playerid);
return 1;
}
pawn Код:
|