09.05.2015, 16:43
Vou da um ex de como faзo os meus ...
Ser ajudei +rep
pawn Код:
// Includes ...
#include <a_samp>
// Enum ...
enum teste
{
pName,
pName2,
};
// Variбveis ...
new NameCargo[MAX_PLAYERS][teste];
// Forward ...
forward ChatBubble();
// Callbacks ...
public OnGameModeInit()
{
SetTimer("ChatBubble", 100, true);
return 1;
}
public ChatBubble()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(NameCargo[playerid][pName] == 1)
{
SetPlayerChatBubble(i, "Name", -1, 100.0, 10000);
}
else if(NameCargo[playerid][pName2] == 1)
{
SetPlayerChatBubble(i, "Name2", -1, 100.0, 10000);
}
}
return 1;
}

