28.06.2012, 14:25
Well, you could use it for names?
pawn Код:
public OnPlayerConnect(playerid)
{
new name[24];
if(strmatch(name, "CrazyChoco"))
{
GivePlayerMoney(playerid, 1000);
}
return 1;
}
stock strmatch(const String1[], const String2[])
{
if ((strcmp(String1, String2, true, strlen(String2)) == 0) && (strlen(String2) == strlen(String1)))
{
return true;
}
else
{
return false;
}
}