Segue um simples para vocк ter uma base ^^
Topo
pawn Код:
new MiqueiasOrgs[MAX_PLAYERS];
Logo abaixo
pawn Код:
#define Civil 0
#define TCP 1
#define CV 2
#define PCC 3
#define EX 4
No spawn do player pra ir na HQ
pawn Код:
public OnPlayerSpawn(playerid)
{
if(MiqueiasOrgs[playerid] == 0) // Civil
{
SetPlayerInterior(playerid, interiorid);
SetPlayerPos(playerid, x, y, z);
//opcional
/*GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);*/
}
else if(MiqueiasOrgs[playerid] == 1) // TCP
{
SetPlayerInterior(playerid, interiorid);
SetPlayerPos(playerid, x, y, z);
//opcional
/*GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);*/
}
else if(MiqueiasOrgs[playerid] == 2) // CV
{
SetPlayerInterior(playerid, interiorid);
SetPlayerPos(playerid, x, y, z);
//opcional
/*GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);*/
}
else if(MiqueiasOrgs[playerid] == 3) // PCC
{
SetPlayerInterior(playerid, interiorid);
SetPlayerPos(playerid, x, y, z);
//opcional
/*GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);*/
}
else if(MiqueiasOrgs[playerid] == 4) // EX
{
SetPlayerInterior(playerid, interiorid);
SetPlayerPos(playerid, x, y, z);
//opcional
/*GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);
GivePlayerWeapon(playerid, armaid, muniзхes);*/
}
return 1;
}
Agora o comando pra tornar o cabrito da Org
pawn Код:
public OnPlayerCommandText(playerid, cmdtext)
{
if(strcmp(cmdtext, "/virarcivil", true) == 0)
{
if(IsPlayerConnected(playerid))
{
MiqueiasOrg[playerid] = 0;
SendClientMessage(playerid, 0x00FFFFFF, "[INFO] Vocк agora й um Civнl!");
}
return 1;
}
if(strcmp(cmdtext, "/virartcp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
MiqueiasOrg[playerid] = 1;
SendClientMessage(playerid, 0x00FFFFFF, "[INFO] Vocк agora й um TCP!");
}
return 1;
}
if(strcmp(cmdtext, "/virarcv", true) == 0)
{
if(IsPlayerConnected(playerid))
{
MiqueiasOrg[playerid] = 2;
SendClientMessage(playerid, 0x00FFFFFF, "[INFO] Vocк agora й um CV!");
}
return 1;
}
if(strcmp(cmdtext, "/virarpcc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
MiqueiasOrg[playerid] = 3;
SendClientMessage(playerid, 0x00FFFFFF, "[INFO] Vocк agora й um PCC!");
}
return 1;
}
if(strcmp(cmdtext, "/virarex", true) == 0)
{
if(IsPlayerConnected(playerid))
{
MiqueiasOrg[playerid] = 0;
SendClientMessage(playerid, 0x00FFFFFF, "[INFO] Vocк agora й um EX!");
}
return 1;
}
return 0;
}
Uffa! Deu trabalho, mais estб ai, espero ter ajudado!