15.03.2010, 19:13
Hey guys. i have a problem
If I do this:
A timer starts. But it starts for everyone and not just for the player that did /materialmission
please help
If I do this:
Code:
} if(strcmp(cmd, "/materialmission", true) == 0) { if(matmission == 1) return SendClientMessage(playerid, red, "material Mission is in cool down "); else if(IsPlayerInRangeOfPoint(playerid, 7.0, 2139.9497,-2291.2764,20.6646)) { GameTextForPlayer(playerid,"~B~You've picked up 7500 materials. Wait 10 minutes till you can get your new 7500",5000,5); PlayerInfo[playerid][Materials]+=7500; SetTimer("mat",600000,false); matmission = 1; } else SendClientMessage(playerid,red,"ERROR: You are not at the material factory"); return 1; }
please help