28.10.2013, 17:11
pawn Код:
CMD:familiapawn(playerid,params[])
{
new Nome[21];
new Fala[21];
new NomePlayer[21][2];
GetPlayerName(playerid,Nome,sizeof(Nome));
format(Fala,sizeof(Fala),"%s_Pawn",split(Fala,NomePlayer,'_'));
SetPlayerName(playerid,Fala);
}
// Fim do GM (By DracoBlue)
stock split(const strsrc[],strdest[][],delimiter)
{
new i,li,aNum,len;
while(i <= strlen(strsrc))
{
if(strsrc[i] == delimiter || i == strlen(strsrc))
{
len = strmid(strdest[aNum], strsrc, li, i, 128);
strdest[aNum][len] = 0;
li = i+1;
aNum++;
}
i++;
}
return 1;
}