[pomoc] Trebam pomoc oko moje 1 filterscripte

Započeo Sabbath, Januar 04, 2011, 15:23:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

pravio sam je i negde sam pogresio..kad ukucam /survivor pise UNKNOW COMMAND
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

new kapija;


#define COLOR_GREEN 0x33AA33AA
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n---------------");
print(" Survivor by miki");
print("---------------\n");
return 1;
}
#else

#endif

public OnGameModeInit()
{
    CreateObject(987,-1482.96142578,357.66207886,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
CreateObject(987,-1494.93835449,357.67425537,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
CreateObject(987,-1506.93579102,357.62484741,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (3)
CreateObject(987,-1518.81738281,357.56396484,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (4)
CreateObject(987,-1530.70263672,357.42645264,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (5)
CreateObject(987,-1542.65588379,357.40036011,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (6)
CreateObject(987,-1554.62658691,357.31729126,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (7)
CreateObject(987,-1494.55834961,345.93331909,52.46093750,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (8)
kapija = CreateObject(988,-1491.61242676,345.75921631,53.50000000,0.00000000,0.00000000,0.00000000); //object(ws_apgate) (1)
CreateObject(987,-1488.94555664,346.07199097,52.46093750,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (9)
CreateObject(987,-1483.17199707,346.06243896,52.46093750,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (10)
CreateObject(987,-1471.41381836,345.94006348,53.42610168,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (11)
CreateObject(987,-1471.32617188,333.98196411,53.42610168,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (12)
CreateObject(987,-1471.34313965,322.00311279,53.42610168,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (13)
CreateObject(987,-1471.25122070,310.07116699,53.37126541,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (14)
CreateObject(987,-1471.28076172,298.31091309,53.42610168,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (15)
CreateObject(987,-1471.37255859,286.60202026,53.42610168,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (16)
CreateObject(987,-1471.25122070,283.33081055,53.42198181,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (17)
CreateObject(987,-1483.26293945,283.32720947,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (18)
CreateObject(987,-1495.17456055,283.20446777,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (19)
CreateObject(987,-1507.10131836,283.17205811,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (20)
CreateObject(987,-1519.05993652,283.21478271,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (21)
CreateObject(987,-1530.99719238,283.17404175,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (22)
CreateObject(987,-1542.92907715,283.13626099,53.29170227,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (23)
CreateObject(987,-1554.85913086,283.13626099,53.27139282,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (24)
CreateObject(987,-1566.85644531,283.13626099,53.23411942,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (25)
CreateObject(987,-1571.19409180,283.30786133,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (26)
CreateObject(987,-1571.41149902,358.00988770,53.34342957,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (27)
CreateObject(987,-1571.20800781,295.08300781,53.42610168,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (30)
CreateObject(987,-1571.29199219,306.99707031,53.42610168,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (29)
CreateObject(987,-1571.10644531,318.95605469,53.42610168,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (31)
CreateObject(987,-1571.41113281,330.98828125,53.35561371,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (32)
CreateObject(987,-1571.38281250,342.82519531,53.42610168,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (33)
CreateObject(987,-1571.37170410,354.76718140,53.42610168,0.00000000,0.00000000,270.00000000); //object(elecfence_bar) (34)
CreateObject(987,-1566.61877441,357.30508423,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (35)
CreateObject(987,-1571.23132324,357.31750488,53.42610168,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (36)
return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/otvori", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
    MoveObject(kapija,-1494.55834961,345.93331909,52.4609375);
    SetTimer("zatvori", 5000, 0);
SendClientMessage(playerid,COLOR_GREEN,"Otvorili ste kapiju, automatski ce se zatvoriti");
    return 1;}
if (strcmp("/survivor", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2134.7495,1683.2942,13.0060,151.2320);
}
return 0;
}
public zatvori()
{
    MoveObject(kapija,-1491.61242676,345.75921631,53.50000000);
    return 1;
}


Probaj ovako staviti tu komandu
if (strcmp("/survivor", cmdtext, true, 10) == 0)
{
   SetPlayerPos(playerid, 2134.7495,1683.2942,13.0060,151.2320);
reutrn 1;
}


if (strcmp("/survivor", cmdtext, true, 10) == 0)
{
    SetPlayerPos(playerid, 2134.7495,1683.2942,13.0060);
    reutrn 1;
}


http://wiki.sa-mp.com/wiki/SetPlayerPos


Napiši ovako kako sam dole napiso meni tako radi vjerovatno ce i tebi

   1. if (strcmp("/survivor", cmdtext, true)) 
   2. { 
   3.     SetPlayerPos(playerid, 2134.7495,1683.2942,13.0060); 
   4.     reuturn 1; 
   5. }

 
Poslednja Izmena: Januar 05, 2011, 16:39:42 POSLE PODNE od marsmarin
<center></center>