Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerConnect(playerid)
- {
- new PlayerText:TDEditor_PTD[MAX_PLAYERS][12];
- TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 165.841857, 101.333343, "box");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.000000, 22.322105);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 473.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][0], -2139062017);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
- TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 168.184478, 103.666664, "box");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.000000, 21.759880);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][1], 470.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][1], -1061109505);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
- TDEditor_PTD[playerid][2] = CreatePlayerTextDraw(playerid, 396.354339, 101.333236, "SELECT A ROAD-BLOCK");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][2], 0.400000, 1.600000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][2], 3);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][2], 255);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][2], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][2], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][2], 0);
- TDEditor_PTD[playerid][3] = CreatePlayerTextDraw(playerid, 397.291625, 101.333328, "SELECT A ROAD-BLOCK");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][3], 0.400000, 1.600000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][3], 3);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][3], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][3], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][3], 0);
- TDEditor_PTD[playerid][4] = CreatePlayerTextDraw(playerid, 178.023422, 157.916641, "box");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][4], 0.000000, 7.469985);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][4], 241.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][4], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][4], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][4], -2139062017);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][4], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][4], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][4], 0);
- PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][4], true);
- TDEditor_PTD[playerid][5] = CreatePlayerTextDraw(playerid, 285.314788, 157.916564, "box");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][5], 0.000000, 7.469985);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][5], 357.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][5], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][5], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][5], -2139062017);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][5], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][5], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][5], 0);
- PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][5], true);
- TDEditor_PTD[playerid][6] = CreatePlayerTextDraw(playerid, 393.543426, 155.583251, "box");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][6], 0.000000, 7.469985);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][6], 459.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][6], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][6], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][6], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][6], -2139062017);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][6], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][6], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][6], 0);
- PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][6], true);
- TDEditor_PTD[playerid][7] = CreatePlayerTextDraw(playerid, 177.855041, 162.583236, "");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][7], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][7], 63.000000, 59.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][7], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][7], -1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][7], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][7], -2139062017);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][7], 5);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][7], 0);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][7], 0);
- PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][7], 1424);
- PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][7], 0.000000, 0.000000, 0.000000, 1.000000);
- TDEditor_PTD[playerid][8] = CreatePlayerTextDraw(playerid, 280.629364, 258.833343, "box");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][8], 0.000000, 3.721817);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][8], 171.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][8], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][8], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[playerid][8], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[playerid][8], -2139062017);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][8], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][8], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][8], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][8], 0);
- PlayerTextDrawSetSelectable(playerid, TDEditor_PTD[playerid][8], true);
- TDEditor_PTD[playerid][9] = CreatePlayerTextDraw(playerid, 287.020996, 157.916671, "");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][9], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][9], 67.000000, 67.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][9], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][9], -1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][9], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][9], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][9], -2139062017);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][9], 5);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][9], 0);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][9], 0);
- PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][9], 1459);
- PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][9], 0.000000, 0.000000, 0.000000, 1.000000);
- TDEditor_PTD[playerid][10] = CreatePlayerTextDraw(playerid, 393.375122, 160.249984, "");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][10], 0.000000, 0.000000);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][10], 65.000000, 54.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][10], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][10], -1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][10], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][10], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][10], -2139062017);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][10], 5);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][10], 0);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][10], 0);
- PlayerTextDrawSetPreviewModel(playerid, TDEditor_PTD[playerid][10], 1238);
- PlayerTextDrawSetPreviewRot(playerid, TDEditor_PTD[playerid][10], 0.000000, 0.000000, 0.000000, 1.000000);
- TDEditor_PTD[playerid][11] = CreatePlayerTextDraw(playerid, 193.016067, 267.583343, "CONFIRM");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][11], 0.400000, 1.600000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][11], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][11], -1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][11], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][11], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][11], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][11], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][11], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][11], 0);
- return 1;
- }
- CMD:deployroadblock(playerid, params[])
- {
- /*if(FactionInfo[PlayerInfo[playerid][pFaction]][eFactionType] == FACTION_TYPE_POLICE && PlayerInfo[playerid][pPoliceDuty])
- {*/
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][0]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][1]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][2]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][3]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][4]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][5]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][6]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][7]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][8]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][9]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][10]);
- TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][11]);
- SelectTextDraw(playerid, COLOR_FADE2);
- }
- /*else
- {
- SendClientMessage(playerid, COLOR_REDEX, "ERROR: {FFFFFF}You don't have acess to this command!");
- return 1;
- }*/
- return 1;
- }
- C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : error 017: undefined symbol "TDEditor_PTD"
- C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : warning 215: expression has no effect
- C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : error 001: expected token: ";", but found "]"
- C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : error 029: invalid expression, assumed zero
- C:\Users\Razvan\Desktop\TDE\gamemodes\pcrp.pwn(646) : fatal error 107: too many error messages on one line
- LINE 646: TextDrawShowForPlayer(playerid, TDEditor_PTD[playerid][0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement