PHP код:
CreateGPSTD(playerid,st)
{
if(playerid == INVALID_PLAYER_ID || !st) return true;
switch(st)
{
case 1:
{
GPSPlayer[playerid][0] = CreatePlayerTextDraw(playerid, 15.666661, 321.481445, "LD_BEAT:chit");
PlayerTextDrawLetterSize(playerid, GPSPlayer[playerid][0], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, GPSPlayer[playerid][0], 142.666549, 121.125915);
PlayerTextDrawAlignment(playerid, GPSPlayer[playerid][0], 1);
PlayerTextDrawColor(playerid, GPSPlayer[playerid][0], 255);
PlayerTextDrawSetShadow(playerid, GPSPlayer[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, GPSPlayer[playerid][0], 0);
PlayerTextDrawFont(playerid, GPSPlayer[playerid][0], 4);
GPSPlayer[playerid][1] = CreatePlayerTextDraw(playerid, 66.333358, 357.155578, "GPS");
PlayerTextDrawLetterSize(playerid, GPSPlayer[playerid][1], 0.237999, 1.243258);
PlayerTextDrawAlignment(playerid, GPSPlayer[playerid][1], 1);
PlayerTextDrawColor(playerid, GPSPlayer[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, GPSPlayer[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, GPSPlayer[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, GPSPlayer[playerid][1], 51);
PlayerTextDrawFont(playerid, GPSPlayer[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, GPSPlayer[playerid][1], 1);
GPSPlayer[playerid][2] = CreatePlayerTextDraw(playerid, 89.333366, 356.740814, "OFF");
PlayerTextDrawLetterSize(playerid, GPSPlayer[playerid][2], 0.237999, 1.243258);
PlayerTextDrawAlignment(playerid, GPSPlayer[playerid][2], 1);
PlayerTextDrawColor(playerid, GPSPlayer[playerid][2], -7601921);
PlayerTextDrawSetShadow(playerid, GPSPlayer[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, GPSPlayer[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, GPSPlayer[playerid][2], 51);
PlayerTextDrawFont(playerid, GPSPlayer[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, GPSPlayer[playerid][2], 1);
GPSPlayer[playerid][3] = CreatePlayerTextDraw(playerid, 51.000038, 376.237030, "BUY GPS IN 24/7");
PlayerTextDrawLetterSize(playerid, GPSPlayer[playerid][3], 0.237999, 1.243258);
PlayerTextDrawAlignment(playerid, GPSPlayer[playerid][3], 1);
PlayerTextDrawColor(playerid, GPSPlayer[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, GPSPlayer[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, GPSPlayer[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, GPSPlayer[playerid][3], 51);
PlayerTextDrawFont(playerid, GPSPlayer[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, GPSPlayer[playerid][3], 1);
GPSPlayer[playerid][4] = CreatePlayerTextDraw(playerid, 70.666702, 384.533355, "New Textdraw");
PlayerTextDrawLetterSize(playerid, GPSPlayer[playerid][4], 0.449999, 1.600000);
PlayerTextDrawTextSize(playerid, GPSPlayer[playerid][4], 33.333335, 38.162990);
PlayerTextDrawAlignment(playerid, GPSPlayer[playerid][4], 1);
PlayerTextDrawColor(playerid, GPSPlayer[playerid][4], -1);
PlayerTextDrawUseBox(playerid, GPSPlayer[playerid][4], true);
PlayerTextDrawBoxColor(playerid, GPSPlayer[playerid][4], 0);
PlayerTextDrawSetShadow(playerid, GPSPlayer[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, GPSPlayer[playerid][4], 1);
PlayerTextDrawFont(playerid, GPSPlayer[playerid][4], 5);
PlayerTextDrawSetProportional(playerid, GPSPlayer[playerid][4], 1);
PlayerTextDrawBackgroundColor(playerid, GPSPlayer[playerid][4], 0x00000000);
PlayerTextDrawSetPreviewModel(playerid, GPSPlayer[playerid][4], 18875);
PlayerTextDrawSetPreviewRot(playerid, GPSPlayer[playerid][4], 90.000000, 180.000000, 0.000000, 1.000000);
}
case 2: for(new i = 0; i < 5; i++) PlayerTextDrawShow(playerid,GPSPlayer[playerid][i]);
case 3:
{
for(new i = 0; i < 5; i++) PlayerTextDrawHide(playerid,GPSPlayer[playerid][i]);
printf("Убрали для playerid = %d",playerid);
}
case 4:
{
for(new i = 0; i < 5; i++) PlayerTextDrawDestroy(playerid,GPSPlayer[playerid][i]);
printf("Удалили для playerid = %d",playerid);
}
}
return true;
}
Принт пишет что удаляет...