07.05.2012, 15:17
Ok the first problem is a gate , it wont open or close here's the code :
Top of script :
In GamemodeInit
And the bottom of the script (OnPlayerText)
Thats the open command i didn't add the close command yet.
The second problem are the textdraws , they won't show
top of script :
in gamemodeinit :
i already tired adding TextDrawShowForAll in ongamemodeinic and TextDrawShowForPlayer on player spawn didnt work ...
Top of script :
pawn Код:
new adgate;
pawn Код:
adgate = CreateObject(2990,1208.5999755859,-2036.5999755859,71.900001525879,0,0,90);
pawn Код:
if(strcmp(cmdtext, "/ogate", true) == 0)
{
if (IsPlayerAdmin(playerid))
{
MoveObject(adgate, 1208.5999755859, -2045.5999755859, 71.900001525879, 0, 0, 90);
SendClientMessage(playerid, COLOR_YELLOW, "Opening the gate!");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not an admin!!");
}
return 1;
}
The second problem are the textdraws , they won't show
top of script :
pawn Код:
new Text:web;
new Text:serverver;
pawn Код:
web = TextDrawCreate(8 ,456 , "MyWebSite");
TextDrawFont(web , 2);
TextDrawLetterSize(web , 0.6, 4.2);
TextDrawColor(web , 0xffffffFF);
TextDrawSetOutline(web , false);
TextDrawSetProportional(web , false);
TextDrawSetShadow(web , 1);
serverver = TextDrawCreate(515 ,458 , "ServerVerison");
TextDrawFont(serverver , 1);
TextDrawLetterSize(serverver , 0.4, 2.8000000000000003);
TextDrawColor(serverver , 0xffffffFF);
TextDrawSetOutline(serverver , false);
TextDrawSetProportional(serverver , false);
TextDrawSetShadow(serverver , 3);