Get ID with PlayerInfo
#3

Quote:

else if(strcmp(cmd, "/nomoff", true) == 0)
{
if(PlayerInfo[playerid][pLevel]<1
{SendClientMessage(playerid, COLOR_USAGE, "{FF6600}[Nom OFF]{99EEFF} Commande disponible a partir du niveau 3");return 1;}
new pln[MAX_PLAYER_NAME];
GetPlayerName(playerid,pln,sizeof(pln));
subcmd = strtok(cmdtext, idx);
if(CagouleUse[playerid]==0)
{
CagouleUse[playerid]=1;
check_nameTag(playerid);
idnomoff[playerid] = 10000+random(99999);
SendClientMessage(playerid, COLOR_WHITE, "Nomoff activй..");
player_refreshCagoule(playerid);
return 1;
}
else if(CagouleUse[playerid]==1)
{
CagouleUse[playerid]=0;
idnomoff[playerid] = 0;
check_nameTag(playerid);
Delete3DTextLabel(nom_off[playerid]);
SendClientMessage(playerid, COLOR_WHITE, "Nomoff desactivй..");
player_refreshCagoule(playerid);
return 1;
}
return 1;
}

/nomoff is Okey, because when i Talk in game

"format(showName, sizeof(showName), "Inconnu_%d dit",idnomoff[playerid], text);"

Sent -> Inconnu_92839 dit
Reply


Messages In This Thread
Get ID with PlayerInfo - by introx - 29.01.2016, 08:47
Re: Get ID with PlayerInfo - by Tamy - 29.01.2016, 09:24
Re: Get ID with PlayerInfo - by introx - 29.01.2016, 09:28
Re: Get ID with PlayerInfo - by Tamy - 29.01.2016, 09:40
Re: Get ID with PlayerInfo - by introx - 29.01.2016, 09:47
Re: Get ID with PlayerInfo - by introx - 29.01.2016, 09:51
Re: Get ID with PlayerInfo - by Tamy - 29.01.2016, 10:50
Re: Get ID with PlayerInfo - by introx - 29.01.2016, 11:52
Re: Get ID with PlayerInfo - by Tamy - 29.01.2016, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)