23.06.2013, 16:05
Hmm, for some reason it wont work for me IG, maybe you could help me out with this one.
It just sprays the original spray tag IG.
Код:
if(GangInfo[playerid][Gang] == 1) { for(new stags = Tag; stags < MAX_TAGS; stags++) { if (Tag >= MAX_TAGS-1) return SendClientMessage(playerid,COLOR_RED,"You can no longer spray tags because there are too many tags."); new Float:X, Float:Y, Float:Z,Float:A,name[24]; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); GetPlayerName(playerid,name,24); X += (1 * floatsin(-A, degrees)); Y += (1 * floatcos(-A, degrees)); TagInfo[stags][tgX] = X; TagInfo[stags][tgY] = Y; TagInfo[stags][tgZ] = Z; Sprayed[playerid] = 1; Tag += 1; Spray[stags] = CreateObject(ROLLIN_TAG, X, Y, Z, 0.0, 0.0, A+90); SetObjectMaterialText(ROLLIN_TAG, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,\ "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); GameTextForPlayer(playerid,"~0x800080AA~Sprayed!",3000,3); PlayerPlaySound(playerid,1057,0,0,0); strmid(TagInfo[stags][tgSprayer], name, 0, strlen(name),128); printf("[TAG] %s - %d",TagInfo[stags][tgSprayer],stags); break; } }