Tribute help
#1

I decided to make a tribute for the wtc..
but Im stuck with a timer
if(strcmp(cmdtext, "/wtc", true) == 0) { // Same deal as before
SetPlayerCameraPos(playerid, -1958.5646,297.1433,47.7031);
SetPlayerCameraLookAt(playerid, -1916.0396,445.9594,380.7031);
SendClientMessage (playerid, COLOR_BRIGHTRED, "Wolfbot: Welcome to the world trading centre");
TogglePlayerControllable(playerid, 0);
return 1;
}
if( !strcmp(cmdtext,"/wtcshow",true ))
{
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
return 1;
}
I need /wtcshow to start after 8 seconds
If anyones willing to help me
I think it looks beutiful
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/wtc", true) == 0)
{
    SetPlayerCameraPos(playerid, -1958.5646,297.1433,47.7031);
    SetPlayerCameraLookAt(playerid, -1916.0396,445.9594,380.7031);
    SendClientMessage (playerid, COLOR_BRIGHTRED, "Wolfbot: Welcome to the world trading centre");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("WTCShow", 8000, false, "i", playerid);
    return 1;
}

forward WTCShow(playerid);
public WTCShow(playerid)
{
    TogglePlayerControllable(playerid, 1);
    SetCameraBehindPlayer(playerid);
    return 1;
}
Reply
#3

Quote:
Originally Posted by Chaprnks
pawn Код:
if(strcmp(cmdtext, "/wtc", true) == 0)
{
    SetPlayerCameraPos(playerid, -1958.5646,297.1433,47.7031);
    SetPlayerCameraLookAt(playerid, -1916.0396,445.9594,380.7031);
    SendClientMessage (playerid, COLOR_BRIGHTRED, "Wolfbot: Welcome to the world trading centre");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("WTCShow", 8000, false, "i", playerid);
    return 1;
}

forward WTCShow(playerid);
public WTCShow(playerid)
{
    TogglePlayerControllable(playerid, 1);
    SetCameraBehindPlayer(playerid);
    return 1;
}
Thanks!!
but......
error 029: invalid expression, assumed zero
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFR.pw n(3207) : error 017: undefined symbol "WTCShow"
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFR.pw n(320 : error 029: invalid expression, assumed zero
C:\Users\Braduz\Desktop\Server\gamemodes\tAxIFR.pw n(320 : error 017: undefined symbol "WTCShow"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)