17.06.2011, 13:19
pawn Код:
//GameModelNit or something lol
ConnectNPC("Training","TrainingGuy");
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Training", true))
{
SetPlayerPos(playerid, 302.4050,2067.1462,17.6406);
SetPlayerFacingAngle(playerid, 109.0411);
ApplyAnimation(playerid,"COP_AMBIENT","Coplook_loop",4.1,0,0,0,1,0);
}
return 1;
}
SetPlayerPos(playerid, 315.55523682,2059.98608398, 27); //just for example.
return true;
}