14.11.2010, 10:58
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new string[128], sendername[25];
MySQLCheck();
for(new i = 0; i < 50; i++ )
{
SendClientMessage(playerid, COLOR_WHITE, "");
}
format(sendername, 25, "%s", PlayerName(playerid));
if(IsPlayerNPC(playerid))
{
if(strcmp(sendername,"Spaciatore",true) == 0)
{
SetPlayerSkin(playerid, 223);
SetPlayerPos(playerid, 2286.4858, -2426.7209, 3.0000);
SetPlayerFacingAngle(playerid, 3.7297);
}
if(strcmp(sendername,"Binco",true) == 0)
{
SetPlayerSkin(playerid, 211);
SetPlayerPos(playerid, 207.5418, -98.6980, 1005.2578);
SetPlayerFacingAngle(playerid, 178.7630);
}
}
return 1;
}