public OnPlayerText(playerid, text[]) { if(text[0] == '1') { if(playerGang[playerid] > 0) { new gangChat[256]; new senderName[MAX_PLAYER_NAME]; new string[256]; strmid(gangChat,text,1,strlen(text)); GetPlayerName(playerid, senderName, sizeof(senderName)); format(string, sizeof(string),"GANG CHAT: %s: %s", senderName, gangChat); for(new i = 0; i < gangInfo[playerGang[playerid]][1]; i++) { SendClientMessage(gangMembers[playerGang[playerid]][i], COLOR_AQUA, string); } } return 0; } return 0; }
AddPlayerClass(0,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // AddPlayerClass(1,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); // //SendClientMessage ou GameTextForPlayer aqui ou em outro lugar? AddPlayerClass(2,1832.4519,-2387.8748,15.8021,180.6353,0,0,0,0,0,0); //
public OnPlayerText(playerid, text[])
{
if(text[0] == '1')
{
if(playerGang[playerid] > 0)
{
new gangChat[256];
new senderName[MAX_PLAYER_NAME];
new string[256];
strmid(gangChat,text,1,strlen(text));
GetPlayerName(playerid, senderName, sizeof(senderName));
format(string, sizeof(string),"GANG CHAT: %s: %s", senderName, gangChat);
for(new i = 0; i < gangInfo[playerGang[playerid]][1]; i++)
{
SendClientMessage(gangMembers[playerGang[playerid]][i], COLOR_AQUA, string);
}
}
return 1;
}
return 0;
}
}
return 1;
}
return 0;
}
public OnPlayerText(playerid, text[])
{
if(text[0] == '1')
{
if(playerGang[playerid] > 0)
{
new gangChat[256];
new senderName[MAX_PLAYER_NAME];
new string[256];
strmid(gangChat,text,1,strlen(text));
GetPlayerName(playerid, senderName, sizeof(senderName));
format(string, sizeof(string),"GANG CHAT: %s: %s", senderName, gangChat);
for(new i = 0; i < gangInfo[playerGang[playerid]][1]; i++)
{
SendClientMessage(gangMembers[playerGang[playerid]][i], COLOR_AQUA, string);
}
}
return 0;
}
return 1;
}
GameTextForPlayer(playerid, "MENSAGEM", 2000, 1);
Bom primeiro minha duvida nao era no OnPlayerText e sim queria saber o porque que nao dava pra falar
quanto ao AddPlayerClass eu quero saber como boto mensagem diferente isso eu ja sabia mas mesmo assim valeu pela intenзгo
Originally Posted by bRn
pawn Код:
pawn Код:
|
Originally Posted by TheGarfield
Tente estudar TDM, eu numca fiz , mas posso te dar uma dica .
l______________________________________l |