18.05.2012, 01:57
So my question is how do i create a Basic starter pack Wich Can be picken up 1 time by everyplayer that register
C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(27787) : warning 213: tag mismatch C:\Users\Snor!\Desktop\Real Life ENG\gamemodes\audi.pwn(27791) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings. |
if(!strcmp(cmdtext, "/starter", true)) { if(PlayerInfo[playerid][pNew] == 0) if(IsPlayerInRangeOfPoint(playerid, 3,1476.9500,-1836.0697,13.5469)) { PlayerInfo[playerid][pNew] = 1; SendClientMessage(playerid, 0x33CCFFAA, "Welcome have a starter gift."); SafeGivePlayerMoney(playerid, 500); } else { SendClientMessage(playerid, COLOR_GRAD1, "You aren't at equip place and/or a beginner!."); return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, "You Already had youre Starter pack Money!."); return 1; } } |
PlayerInfo[playerid][pNew] = 1; |
if(PlayerInfo[playerid][pNew] == 0) |
new pNew;
CreateDynamicPickup(1239, 1, 1476.9500,-1836.0697,13.5469);
Create3DTextLabel("[Starter Money] \n /Starter",0x00FF00AA, 1476.9500,-1836.0697,13.5469, 15, 0, 1);