SA-MP Forums Archive
I need a bit of help - 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: I need a bit of help (/showthread.php?tid=375731)



I need a bit of help - Juan_Viz - 07.09.2012

Allright, first of all im trying to make a CMD for Rcon wich is /Setvip [ID] [1] (1 means = VIP) So i DO NOT Want it to save on userfiles or W/e i just wan't to know how can i define the VIP "Usergroup" and so.

Allso is there any kind of callback like
"Public OnPlayerConnect"
Bla Bla Bla
IfPlayerName(playerid,"playername");?


Re: I need a bit of help - MarkoN - 07.09.2012

i dont get the first question but the other
pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(strcmp(playername,"Name"))
{
// something
}



Respuesta: Re: I need a bit of help - Juan_Viz - 11.09.2012

Quote:
Originally Posted by MarkoN
Посмотреть сообщение
i dont get the first question but the other
pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(strcmp(playername,"Name"))
{
// something
}
Where am I suposed to do that for Example I want it like

pawn Код:
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(strcmp(playername,"Lopez"))
{
SendClientMessage,COLOR_RED,"Welcome back Lopez");
GivePlayerWeapon(playerid,38,9999);
GivePlayerMoney(playerid,999999999999999999999);
SetPlayerHealth(playerid,10000);
SetPlayerArmour(playerid,10000);
}