SA-MP Forums Archive
ReturnUser PlayerInfo? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ReturnUser PlayerInfo? (/showthread.php?tid=599689)



ReturnUser PlayerInfo? - introx - 29.01.2016

Hi,

i have a /nameoff system with ID for unknow player.

( Ex: Inconnu_28392 )

I want /kick ID-UNKNOW, /givemoney ID-UNKNOW, etc....

I can modify ReturnUser ?

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;
}