05.03.2010, 19:22
pawn Код:
forward step1(playerid);
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
// Komandas
if(gTeam[playerid] == komanda1) {
SetPlayerColor(playerid,DZELTANS); // Pirma komanda - Sarkana
}
else if(gTeam[playerid] == komanda2) {
SetPlayerColor(playerid,SARKANS); // Otra komanda - Zila
}
// Pamaciba
{
SetPlayerPos(playerid,3759.3091,-1411.2380,4.2778);
SetPlayerFacingAngle(playerid, 233.0);
SetPlayerCameraPos(playerid,3714.0308,-1372.3802,24.3491);
SetPlayerCameraLookAt(playerid,3759.3091,-1411.2380,4.2778);
SendClientMessage(playerid,SARKANS,"-------------------");
SendClientMessage(playerid,DZELTANS,"Yo, si ir pamaciba :D");
SendClientMessage(playerid,SARKANS,"-------------------");
TogglePlayerControllable(playerid, 0);
SetTimer("step1", 5000, 0);
return 1;
}
}
pawn Код:
public step1(playerid)
{
SendClientMessage(playerid, DZELTANS, "Pamaciba beigusies");
TogglePlayerControllable(playerid, 1);
if(gTeam[playerid] = komanda1)
{
SetPlayerPos(playerid,3632.3020,-1604.2275,16.7541);
return 1;
}
if(gTeam[playerid] = komanda2)
{
SetPlayerPos(playerid,3972.4431,-1438.9698,15.6065);
return 1;
}
return 1;
}
When i spawn, tutorial is starting.. After 5 sec, it should go to next step (Public step1), but nothing happens.. public step1 is not starting..