28.09.2018, 22:24
Quote:
if (!strcmp(cmd,"/PCar",true)) { if(userdata[playerid][usercop] == 1) return SendClientMessage(playerid,COLOR_KRED,"You're not an officer !"); if(IsCop[playerid] == 0) return SendClientMessage(playerid,COLOR_KRED,"You're not available!"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USAGE: /PoliceCar [LSPD]/[Ranger]/[FBI]/[Turismo]/[Cheetah]"); new Float:X,Float:Y,Float:Z,Float:Angle; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); if(!strcmp(tmp, "LSPD", true)) { new freetempid = getfreetempcarid(); if(userdata[playerid][usercop] == 0) return SendClientMessage(playerid, COLOR_KRED, "!аъд ма щеиш"); tempCars[freetempid][tempcarid] = CreateVehicle(596,X,Y,Z,Angle,1,-1,-1); tempCars[freetempid][taken] = 1; Test[playerid] = Create3DTextLabel("Pizza Driver", 0x00C7FFFF, X, Y, Z, 40.0, 0); Attach3DTextLabelToPlayer(Test[playerid], playerid, X, Y, Z); RemovePlayerFromVehicle(playerid); PutPlayerInVehicle(playerid,tempCars[freetempid][tempcarid],0); format(String,sizeof(String),"(LSPD Police) You've teleport LSPD Vehicle"); SendClientMessage(playerid,-1,String); SendClientMessage(playerid,Daniel,"/CFIX - мъйчеп дшлб"); SendClientMessage(playerid,Daniel,"/CNos - мдесфъ рйише"); return 1; } |
Attach3DTextLabelToPlayer(Test[playerid], playerid, X, Y, Z); -- Nothing happend... No errors / Warnings.