27.07.2010, 22:07
pawn Код:
public Trains(playerid)
{
new trains=1;
if(trains==10)
{
KillTimer(Traintimer);
return 0;
}
new npcn[20];
trains++;
format(npcn,sizeof(npcn),"[NPC]Train[%i]",trains);
ConnectNPC(npcn,"train_ls");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(dUserINT(PlayerName(i)).("Admin level"))
{
SendClientMessage(i,0x0000FFAA,"[!]Beep?");
}
else if(IsPlayerNPC(i) && !strcmp(PlayerName(i),npcn))
{
new train=AddStaticVehicleEx(538,0,0,0,270,-1,-1,10000000000);
PutPlayerInVehicle(i,train,0);
}
}
return 1;
}